package demo.service.dubbo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//import com.greenline.epay.taikang.service.CommonTelphoneLogService;
//import com.greenline.epay.taikang.service.dto.CommonUserInfoDTO;
import com.greenline.epay.taikang.service.dto.ResponseDTO;

public class TelcomServiceTest {

    public static void main(String[] args) {
//        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
//
//        CommonTelphoneLogService logService = (CommonTelphoneLogService) ctx.getBean("commonLogService");
//        /**
//         * 服务日志
//         */
//        CommonUserInfoDTO user = new CommonUserInfoDTO();
//        user.setiDNo("320201198101142517");
//        user.setMobile("18628177883");
//        user.setUserName("郑荣");
//        user.setPartnerId("201405201546245700");
//        user.setServerType("0");
//        ResponseDTO<Boolean> resdto = logService.sendServiceLog(user);
//        if (resdto.getDataResult()) {
//            System.out.println("msg:" + resdto.getMessage());
//        } else {
//            System.out.println("errmsg:" + resdto.getErrorMsg());
//        }
    }
}
